{if $goods['canbuy']}
<div class="fui-cell-group fui-cell-click" style="margin-top: {$diyitem['style']['margintop']}px; margin-bottom: {$diyitem['style']['marginbottom']}px; background: {$diyitem['style']['background']}">
    <div class="fui-cell">
        <div class="fui-cell-text option-selector" style="color: {$diyitem['style']['textcolor']}">请选择{if empty($spec_titles)}数量{else}{$spec_titles}等{/if}</div>
        <div class="fui-cell-remark"></div>
    </div>
</div>
{else}
<div class="fui-cell-group fui-cell-click">
    <div class="fui-cell">
        <div class="fui-cell-text">
            {if $goods['userbuy']==0}
            您已经超出最大{$goods['usermaxbuy']}件购买量
            {else if $goods['levelbuy']==0}
            您当前会员等级没有购买权限
            {else if $goods['groupbuy']==0}
            您所在的用户组没有购买权限
            {else if $goods['timebuy'] ==-1}
            未到开始抢购时间!
            {else if $goods['timebuy'] ==1}
            抢购时间已经结束!
            {else if $goods['total'] <=0}
            商品已经售罄!
            {/if}</div>
    </div>
</div>
{/if}